3.148 \(\int x^2 (a+b \cos ^{-1}(c x))^2 \, dx\)

Optimal. Leaf size=102 \[ -\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c}-\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c^3}+\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2-\frac {4 b^2 x}{9 c^2}-\frac {2}{27} b^2 x^3 \]

[Out]

-4/9*b^2*x/c^2-2/27*b^2*x^3+1/3*x^3*(a+b*arccos(c*x))^2-4/9*b*(a+b*arccos(c*x))*(-c^2*x^2+1)^(1/2)/c^3-2/9*b*x
^2*(a+b*arccos(c*x))*(-c^2*x^2+1)^(1/2)/c

________________________________________________________________________________________

Rubi [A]  time = 0.15, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {4628, 4708, 4678, 8, 30} \[ -\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c}-\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c^3}+\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2-\frac {4 b^2 x}{9 c^2}-\frac {2}{27} b^2 x^3 \]

Antiderivative was successfully verified.

[In]

Int[x^2*(a + b*ArcCos[c*x])^2,x]

[Out]

(-4*b^2*x)/(9*c^2) - (2*b^2*x^3)/27 - (4*b*Sqrt[1 - c^2*x^2]*(a + b*ArcCos[c*x]))/(9*c^3) - (2*b*x^2*Sqrt[1 -
c^2*x^2]*(a + b*ArcCos[c*x]))/(9*c) + (x^3*(a + b*ArcCos[c*x])^2)/3

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 4628

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*ArcCo
s[c*x])^n)/(d*(m + 1)), x] + Dist[(b*c*n)/(d*(m + 1)), Int[((d*x)^(m + 1)*(a + b*ArcCos[c*x])^(n - 1))/Sqrt[1
- c^2*x^2], x], x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0] && NeQ[m, -1]

Rule 4678

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)*(x_)*((d_) + (e_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[((d + e*x^2)^
(p + 1)*(a + b*ArcCos[c*x])^n)/(2*e*(p + 1)), x] - Dist[(b*n*d^IntPart[p]*(d + e*x^2)^FracPart[p])/(2*c*(p + 1
)*(1 - c^2*x^2)^FracPart[p]), Int[(1 - c^2*x^2)^(p + 1/2)*(a + b*ArcCos[c*x])^(n - 1), x], x] /; FreeQ[{a, b,
c, d, e, p}, x] && EqQ[c^2*d + e, 0] && GtQ[n, 0] && NeQ[p, -1]

Rule 4708

Int[(((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)*((f_.)*(x_))^(m_))/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Simp[
(f*(f*x)^(m - 1)*Sqrt[d + e*x^2]*(a + b*ArcCos[c*x])^n)/(e*m), x] + (Dist[(f^2*(m - 1))/(c^2*m), Int[((f*x)^(m
 - 2)*(a + b*ArcCos[c*x])^n)/Sqrt[d + e*x^2], x], x] - Dist[(b*f*n*Sqrt[1 - c^2*x^2])/(c*m*Sqrt[d + e*x^2]), I
nt[(f*x)^(m - 1)*(a + b*ArcCos[c*x])^(n - 1), x], x]) /; FreeQ[{a, b, c, d, e, f}, x] && EqQ[c^2*d + e, 0] &&
GtQ[n, 0] && GtQ[m, 1] && IntegerQ[m]

Rubi steps

\begin {align*} \int x^2 \left (a+b \cos ^{-1}(c x)\right )^2 \, dx &=\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2+\frac {1}{3} (2 b c) \int \frac {x^3 \left (a+b \cos ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx\\ &=-\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2-\frac {1}{9} \left (2 b^2\right ) \int x^2 \, dx+\frac {(4 b) \int \frac {x \left (a+b \cos ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx}{9 c}\\ &=-\frac {2}{27} b^2 x^3-\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c^3}-\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2-\frac {\left (4 b^2\right ) \int 1 \, dx}{9 c^2}\\ &=-\frac {4 b^2 x}{9 c^2}-\frac {2 b^2 x^3}{27}-\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c^3}-\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \cos ^{-1}(c x)\right )^2\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.16, size = 121, normalized size = 1.19 \[ \frac {9 a^2 c^3 x^3-6 a b \sqrt {1-c^2 x^2} \left (c^2 x^2+2\right )-6 b \cos ^{-1}(c x) \left (b \sqrt {1-c^2 x^2} \left (c^2 x^2+2\right )-3 a c^3 x^3\right )+9 b^2 c^3 x^3 \cos ^{-1}(c x)^2-2 b^2 c x \left (c^2 x^2+6\right )}{27 c^3} \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a + b*ArcCos[c*x])^2,x]

[Out]

(9*a^2*c^3*x^3 - 6*a*b*Sqrt[1 - c^2*x^2]*(2 + c^2*x^2) - 2*b^2*c*x*(6 + c^2*x^2) - 6*b*(-3*a*c^3*x^3 + b*Sqrt[
1 - c^2*x^2]*(2 + c^2*x^2))*ArcCos[c*x] + 9*b^2*c^3*x^3*ArcCos[c*x]^2)/(27*c^3)

________________________________________________________________________________________

fricas [A]  time = 0.49, size = 111, normalized size = 1.09 \[ \frac {9 \, b^{2} c^{3} x^{3} \arccos \left (c x\right )^{2} + 18 \, a b c^{3} x^{3} \arccos \left (c x\right ) + {\left (9 \, a^{2} - 2 \, b^{2}\right )} c^{3} x^{3} - 12 \, b^{2} c x - 6 \, {\left (a b c^{2} x^{2} + 2 \, a b + {\left (b^{2} c^{2} x^{2} + 2 \, b^{2}\right )} \arccos \left (c x\right )\right )} \sqrt {-c^{2} x^{2} + 1}}{27 \, c^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arccos(c*x))^2,x, algorithm="fricas")

[Out]

1/27*(9*b^2*c^3*x^3*arccos(c*x)^2 + 18*a*b*c^3*x^3*arccos(c*x) + (9*a^2 - 2*b^2)*c^3*x^3 - 12*b^2*c*x - 6*(a*b
*c^2*x^2 + 2*a*b + (b^2*c^2*x^2 + 2*b^2)*arccos(c*x))*sqrt(-c^2*x^2 + 1))/c^3

________________________________________________________________________________________

giac [A]  time = 2.24, size = 143, normalized size = 1.40 \[ \frac {1}{3} \, b^{2} x^{3} \arccos \left (c x\right )^{2} + \frac {2}{3} \, a b x^{3} \arccos \left (c x\right ) + \frac {1}{3} \, a^{2} x^{3} - \frac {2}{27} \, b^{2} x^{3} - \frac {2 \, \sqrt {-c^{2} x^{2} + 1} b^{2} x^{2} \arccos \left (c x\right )}{9 \, c} - \frac {2 \, \sqrt {-c^{2} x^{2} + 1} a b x^{2}}{9 \, c} - \frac {4 \, b^{2} x}{9 \, c^{2}} - \frac {4 \, \sqrt {-c^{2} x^{2} + 1} b^{2} \arccos \left (c x\right )}{9 \, c^{3}} - \frac {4 \, \sqrt {-c^{2} x^{2} + 1} a b}{9 \, c^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arccos(c*x))^2,x, algorithm="giac")

[Out]

1/3*b^2*x^3*arccos(c*x)^2 + 2/3*a*b*x^3*arccos(c*x) + 1/3*a^2*x^3 - 2/27*b^2*x^3 - 2/9*sqrt(-c^2*x^2 + 1)*b^2*
x^2*arccos(c*x)/c - 2/9*sqrt(-c^2*x^2 + 1)*a*b*x^2/c - 4/9*b^2*x/c^2 - 4/9*sqrt(-c^2*x^2 + 1)*b^2*arccos(c*x)/
c^3 - 4/9*sqrt(-c^2*x^2 + 1)*a*b/c^3

________________________________________________________________________________________

maple [A]  time = 0.05, size = 126, normalized size = 1.24 \[ \frac {\frac {c^{3} x^{3} a^{2}}{3}+b^{2} \left (\frac {\arccos \left (c x \right )^{2} c^{3} x^{3}}{3}-\frac {2 \arccos \left (c x \right ) \left (c^{2} x^{2}+2\right ) \sqrt {-c^{2} x^{2}+1}}{9}-\frac {2 c^{3} x^{3}}{27}-\frac {4 c x}{9}\right )+2 a b \left (\frac {c^{3} x^{3} \arccos \left (c x \right )}{3}-\frac {c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{9}-\frac {2 \sqrt {-c^{2} x^{2}+1}}{9}\right )}{c^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a+b*arccos(c*x))^2,x)

[Out]

1/c^3*(1/3*c^3*x^3*a^2+b^2*(1/3*arccos(c*x)^2*c^3*x^3-2/9*arccos(c*x)*(c^2*x^2+2)*(-c^2*x^2+1)^(1/2)-2/27*c^3*
x^3-4/9*c*x)+2*a*b*(1/3*c^3*x^3*arccos(c*x)-1/9*c^2*x^2*(-c^2*x^2+1)^(1/2)-2/9*(-c^2*x^2+1)^(1/2)))

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 142, normalized size = 1.39 \[ \frac {1}{3} \, b^{2} x^{3} \arccos \left (c x\right )^{2} + \frac {1}{3} \, a^{2} x^{3} + \frac {2}{9} \, {\left (3 \, x^{3} \arccos \left (c x\right ) - c {\left (\frac {\sqrt {-c^{2} x^{2} + 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{c^{4}}\right )}\right )} a b - \frac {2}{27} \, {\left (3 \, c {\left (\frac {\sqrt {-c^{2} x^{2} + 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{c^{4}}\right )} \arccos \left (c x\right ) + \frac {c^{2} x^{3} + 6 \, x}{c^{2}}\right )} b^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*arccos(c*x))^2,x, algorithm="maxima")

[Out]

1/3*b^2*x^3*arccos(c*x)^2 + 1/3*a^2*x^3 + 2/9*(3*x^3*arccos(c*x) - c*(sqrt(-c^2*x^2 + 1)*x^2/c^2 + 2*sqrt(-c^2
*x^2 + 1)/c^4))*a*b - 2/27*(3*c*(sqrt(-c^2*x^2 + 1)*x^2/c^2 + 2*sqrt(-c^2*x^2 + 1)/c^4)*arccos(c*x) + (c^2*x^3
 + 6*x)/c^2)*b^2

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int x^2\,{\left (a+b\,\mathrm {acos}\left (c\,x\right )\right )}^2 \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*acos(c*x))^2,x)

[Out]

int(x^2*(a + b*acos(c*x))^2, x)

________________________________________________________________________________________

sympy [A]  time = 1.05, size = 175, normalized size = 1.72 \[ \begin {cases} \frac {a^{2} x^{3}}{3} + \frac {2 a b x^{3} \operatorname {acos}{\left (c x \right )}}{3} - \frac {2 a b x^{2} \sqrt {- c^{2} x^{2} + 1}}{9 c} - \frac {4 a b \sqrt {- c^{2} x^{2} + 1}}{9 c^{3}} + \frac {b^{2} x^{3} \operatorname {acos}^{2}{\left (c x \right )}}{3} - \frac {2 b^{2} x^{3}}{27} - \frac {2 b^{2} x^{2} \sqrt {- c^{2} x^{2} + 1} \operatorname {acos}{\left (c x \right )}}{9 c} - \frac {4 b^{2} x}{9 c^{2}} - \frac {4 b^{2} \sqrt {- c^{2} x^{2} + 1} \operatorname {acos}{\left (c x \right )}}{9 c^{3}} & \text {for}\: c \neq 0 \\\frac {x^{3} \left (a + \frac {\pi b}{2}\right )^{2}}{3} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a+b*acos(c*x))**2,x)

[Out]

Piecewise((a**2*x**3/3 + 2*a*b*x**3*acos(c*x)/3 - 2*a*b*x**2*sqrt(-c**2*x**2 + 1)/(9*c) - 4*a*b*sqrt(-c**2*x**
2 + 1)/(9*c**3) + b**2*x**3*acos(c*x)**2/3 - 2*b**2*x**3/27 - 2*b**2*x**2*sqrt(-c**2*x**2 + 1)*acos(c*x)/(9*c)
 - 4*b**2*x/(9*c**2) - 4*b**2*sqrt(-c**2*x**2 + 1)*acos(c*x)/(9*c**3), Ne(c, 0)), (x**3*(a + pi*b/2)**2/3, Tru
e))

________________________________________________________________________________________